package com.atguigu.eduservice;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@ComponentScan(basePackages = {"com.atguigu"})
@MapperScan("com.atguigu.eduservice.mapper")
@SpringBootApplication
@EnableDiscoveryClient //nacos服务注册
@EnableFeignClients //Feign远程调用实现
//@EnableCircuitBreaker //用于服务自身的服务降级和熔断机制，如果不加服务本身的降级和熔断不生效。如果是openfeign在配置件里面配就行
//@EnableHystrix
public class EduApplication {

    public static void main(String[] args) {
        SpringApplication.run(EduApplication.class,args);
    }

}
